import uiautomator2 as u2

d = u2.connect("127.0.0.1")  # connect to device
print(d.info)
d.open_url("http://127.0.0.1:7912")
